/**
 * 
 */
package neptune.web.client.view.components;

import neptune.web.client.commands.ExperimentSummaryCommand;
import neptune.web.client.commands.HelpCommand;
import neptune.web.client.commands.LogOutCommand;
import neptune.web.client.commands.NewExperimentCommand;
import neptune.web.client.commands.DeleteExperimentCommand;

import com.google.gwt.user.client.ui.MenuBar;

/**
 * @author Roberto Bifulco [info@robertobifulco.it, robertobifulco.it]
 * @author Luigi Lorenzo Arpino [luigiarpino@yahoo.it]
 * 
 */
public class UserMenuBar extends MenuBar {

	public UserMenuBar() {

		MenuBar experiments = new MenuBar(true);
		experiments.addItem("Summary", new ExperimentSummaryCommand());
		experiments.addItem("New...", new NewExperimentCommand());
		experiments.addItem("Remove", new DeleteExperimentCommand());

		MenuBar users = new MenuBar(true);
		users.addItem("LogOut", new LogOutCommand());

		addItem("Users", users);
		addItem("Experiments", experiments);
		addItem("Help", new HelpCommand());
		addSeparator();
		
		addStyleName("OperativeView-gwt-MenuBar-horizontal");
	}

}
